import request from '@/utils/request'

/**
 * 查询报名情况分页列表
 */
export function pageListRegistration(query) {
    return request({
        url: '/hchy/registration/pageList',
        method: 'get',
        params: query
    })
}

/**
 * 查询报名情况所有列表
 */
export function listRegistration(query) {
    return request({
        url: '/hchy/registration/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询报名情况详细
 */
export function getRegistration(id) {
    return request({
        url: '/hchy/registration/' + id,
        method: 'get'
    })
}

/**
 * 新增报名情况
 */
export function addRegistration(data) {
    return request({
        url: '/hchy/registration',
        method: 'post',
        data: data
    })
}

/**
 * 修改报名情况
 */
export function updateRegistration(data) {
    return request({
        url: '/hchy/registration',
        method: 'put',
        data: data
    })
}

/**
 * 删除报名情况
 */
export function delRegistration(id) {
    return request({
        url: '/hchy/registration/' + id,
        method: 'delete'
    })
}
